import request from '@/utils/request'

// 保存申请单
export function insertRequistion(data) {
  return request({
    url: '/tPurRequisition/insertRequistion',
    method: 'post',
    data
  })
}
// 修改采购申请
export function updateRequistion(data) {
  return request({
    url: '/tPurRequisition/updateRequistion',
    method: 'put',
    data
  })
}
// 查询采购申请单详情
export function queryRequistionDetails(data) {
  return request({
    url: '/tPurRequisition/queryRequistionDetails',
    method: 'post',
    data
  })
}
// 采购申请单下推新增采购订单
export function insertPoorder(data) {
  return request({
    url: '/tPurPoorder/pushPurRequisit',
    method: 'post',
    data
  })
}
// 新增采购订单
export function insertPurPoorder(data) {
  return request({
    url: '/tPurPoorder/savePurPoorder',
    method: 'post',
    data
  })
}
// 采购订单下推采购入库单
export function insertStkStock(data) {
  return request({
    url: '/tStkInstock/insertStkStock',
    method: 'post',
    data
  })
}
// 采购订单下推品质检验单
export function pushPurCheck(data) {
  return request({
    url: '/tPurCheckout/pushPurCheck',
    method: 'post',
    data
  })
}
// 采购申请详情-输入基本数量获取申请数量
export function basicprocurement(data) {
  return request({
    url: '/tBdUnitconvertrate/basicprocurement',
    method: 'post',
    data
  })
}
// 采购申请详情-输入申请数量获取基本数量
export function procurementbasic(data) {
  return request({
    url: '/tBdUnitconvertrate/procurementbasic',
    method: 'post',
    data
  })
}
